package com.wlz.dependencies;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author wlz
 * @date 2022-05-25  9:07 下午
 */
public class InstanceA implements IApi{

	@Autowired
	private InstanceB instanceB;

	public InstanceB getInstanceB() {
		return instanceB;
	}

	public void setInstanceB(InstanceB instanceB) {
		this.instanceB = instanceB;
	}

	public InstanceA(InstanceB instanceB) {
		this.instanceB = instanceB;
	}


	public InstanceA() {
		System.out.println("InstanceA实例化");
	}

	@Override
	public void say() {
		System.out.println("I`m A");
	}
}
